import request from "@/utils/request"

// 推荐电台
export const personalizedDjprogram = () => request('/personalized/djprogram')

// 推荐节目
export const programRecommend = ({ limit = 10, offset = 0 }) => request(`/program/recommend?limit=${limit}&offset=${offset}`)

// 热门电台
export const djhot = ({ limit = 10, offset = 0 }) => request(`/dj/hot?limit=${limit}&offset=${offset}`)

// 电台 banner
export const djbanner = () => request('/dj/banner')

// 电台个性推荐
export const personalize = (limit = 6) => request(`/dj/personalize/recommend?limit=${limit}`)

// 电台 - 付费精品
export const toplistpay = (limit) => request(`/dj/toplist/pay?limit=${limit}`)

// 电台 - 24 小时节目榜
export const programtoplisthours = (limit = 30) => request(`/dj/program/toplist/hours?limit=${limit}`)

// 电台 - 24 小时主播榜
export const toplisthours = (limit = 30) => request(`/dj/toplist/hours?limit=${limit}`)

// 电台 - 主播新人榜
export const toplistnewcomer = () => request('/dj/toplist/newcomer')

// 电台 - 最热主播榜
export const toplistpopular = (limit) => request(`/dj/toplist/popular?limit=${limit}`)

// 电台 - 类别热门电台
export const radiohot = ({ limit = 10, offset = 0, cateId }) => request(`/dj/radio/hot?cateId=${cateId}&limit=${limit}&offset=${offset}`)

// 电台 - 付费精选
export const paygift = ({ limit = 10, offset = 0 }) => request(`/dj/paygift?limit=${limit}&offset=${offset}`)

// 电台 - 节目详情
export const programdetail = id => request(`/dj/program/detail?id=${id}`)

// 电台 - 分类
export const catelist = () => request('/dj/catelist')